import request from '@/utils/request'

export function listInfo2(registeredfeeName) {
    return request({
      url: `http://localhost:8080/registeredfees/selects`,
      method: 'get',
    params:{
        registeredfeeName
    }
    })
  }


  // 删除数据
export function delatedata(regId){
    return request({
      url:'http://localhost:8080/registeredfees/deletes/'+regId,
      method:'post'
    })
}

export function getByid(regId){
  return request({
    url:'http://localhost:8080/registeredfees/select/'+regId,
    method:'get'
  })
}


//修改数据 
export function updatedata(data){
    return request({
      url:"http://localhost:8080/registeredfees/updates",
      method:"post",
      params:data
    })
  }

//添加挂号及其子费用

export function addtwo(data){
  return request({
    url:"http://localhost:8080/registeredfees/addTwo",
    method:"post",
    contentType: "application/json;charset=utf-8",
    data:data
  })
}